import axios from "../../utils/axios"
// 获取资金明细管理
export function getCapitalList(query) {
    return axios({
        url: "goldendays-user/mbUserManager/getList",
        method: "get",
        params: query
    });
}




//获取明细查询类型 goldendays-order/merchant/finance/getFundsType
export function getFundsType(query){
    return axios({
        url:"goldendays-order/merchant/finance/getFundsType",
        method:"get",
        params:query
    })
}

//获取用户交易明细  goldendays-order/fund/queryTransactionDetailedHDPage
export function getFundsList(query){
    return axios({
        url:"goldendays-order/fund/queryTransactionDetailedHDPage",
        method:"get",
        params:query
    })
}

//获取用户结算明细   goldendays-order/fund/querySettlementDetailedHDPage
export function getPayList(query){
    return axios({
        url:"goldendays-order/fund/querySettlementDetailedHDPage",
        method:"get",
        params:query
    })
}

//获取用户预结算明细 goldendays-order/fund/queryPreSettlementDetailedHDPage
export function getReadyList(query){
    return axios({
        url:"goldendays-order/fund/queryPreSettlementDetailedHDPage",
        method:"get",
        params:query
    })
}

//获取资金申请列表 /goldendays-user/merchantUser/getFunds
export function getFunds(query){
    return axios({
        url:"goldendays-user/merchantUser/getFunds",
        method:"get",
        params:query
    })
}

//获取付款申请页面的接口 goldendays-user/tradingAccountManager/queryRechargeWithdrawalHDPage
export function getPayEnd(query){
    return axios({
        url:"goldendays-user/tradingAccountManager/queryRechargeWithdrawalHDPage",
        method:"get",
        params:query
    })
}

//付款审核、结款审核、结款处理

//获取付款/结款审核页面         /goldendays-user/tradingAccountManager/querypayApplyToExamineHDPage? 参数id ，transactiontype（必传） 1 付款 ，2结款，enterpriseName，currentPage=1&pageSize=10
export function getPayApply(query){
    return axios({
        url:"goldendays-user/tradingAccountManager/querypayApplyToExamineHDPage",
        method:"get",
        params:query
    })
}

//通过/驳回        /goldendays-user/tradingAccountManager/payAdoptOrReject
export function payAdoptOrReject(query){
    return axios({
        url:"goldendays-user/tradingAccountManager/payAdoptOrReject",
        method:"POST",
        data:query
    })
}
//结款申请处理       /goldendays-user/tradingAccountManager/queryApplyhandleHDPage
export function queryApplyhandleHDPage(query){
    return axios({
        url:"goldendays-user/tradingAccountManager/queryApplyhandleHDPage",
        method:"GET",
        params:query
    })
}

//结款申请/发起处理 、驳回      /goldendays-user/tradingAccountManager/settlementHandleOrReject
export function settlementHandleOrReject(query){
    return axios({
        url:"goldendays-user/tradingAccountManager/settlementHandleOrReject",
        method:"post",
        data:query
    })
}
//结款申请通过/驳回       /goldendays-user/tradingAccountManager/settlementAdoptOrReject
export function settlementAdoptOrReject(query){
    return axios({
        url:"goldendays-user/tradingAccountManager/settlementAdoptOrReject",
        method:"post",
        data:query
    })
}

//管家卡

//导入模板下载     /goldendays-user/houseCard/downloadCardTemplate
// export function downloadCardTemplate(query){
//     return axios({
//         url:"goldendays-user/houseCard/downloadCardTemplate",
//         method:"get",
//         params:query
//     })
// }
//导入管家卡数据     /goldendays-user/houseCard/exportCardData
// export function exportCardData(query){
//     return axios({
//         url:"goldendays-user/houseCard/exportCardData",
//         method:"post",
//         data:query
//     })
// }
//报警规则查询     /goldendays-user/houseCard/queryAlarmRule
export function queryAlarmRule(query){
    return axios({
        url:"goldendays-user/houseCard/queryAlarmRule",
        method:"post",
        data:query
    })
}
//管家卡列表     /goldendays-user/houseCard/queryHousekeeperCardHDPage
export function queryHousekeeperCardHDPage(query){
    return axios({
        url:"goldendays-user/houseCard/queryHousekeeperCardHDPage",
        method:"get",
        params:query
    })
}
//报警规则设置     /goldendays-user/houseCard/setAlarmRule
export function setAlarmRule(query){
    return axios({
        url:"goldendays-user/houseCard/setAlarmRule",
        method:"post",
        data:query
    })
}

//查询可用管家卡数量     /goldendays-user/houseCard/queryCardNum
export function queryCardNum(query){
    return axios({
        url:"goldendays-user/houseCard/queryCardNum",
        method:"get",
        params:query
    })
}

//商城资金调整



//账户调整     /goldendays-user/fundChange/setFundAccount
export function setFundAccount(query){
    return axios({
        url:"goldendays-user/fundChange/setFundAccount",
        method:"post",
        data:query
    })
}

//商城资金调整列表     /goldendays-user/fundChange/queryFundChangeHDPage
export function queryFundChangeHDPage(query){
    return axios({
        url:"goldendays-user/fundChange/queryFundChangeHDPage",
        method:"get",
        params:query
    })
}

// 商家税务管理
export function queryUserTaxHDPage(query){
    return axios({
        url:"goldendays-order/MbUserTax/queryUserTaxHDPage",
        method:"get",
        params:query
    })
}
// 商家税务明细
export function getMbUserProfitTax(query){
    return axios({
        url:"goldendays-order/MbUserTax/getMbUserProfitTax",
        method:"get",
        params:query
    })
}